package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.SysDingdan;
import com.ruoyi.system.mapper.SysDingdanMapper;
import com.ruoyi.system.service.ISysDingdanService;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.List;
@Service
public class SysDingdanServiceImpl implements ISysDingdanService {
    @Resource
    SysDingdanMapper sysDingdanMapper;
    @Override
    public List<SysDingdan> selectDingdanList(SysDingdan dingdan) {
        return sysDingdanMapper.selectDingdanList(dingdan);
    }

    @Override
    public SysDingdan selectDingdanById(int dingdanId) {
        return sysDingdanMapper.selectDingdanById(dingdanId);
    }

    @Override
    public int updateDingdan(SysDingdan dingdan) {
        return sysDingdanMapper.updateDingdan(dingdan);
    }

    @Override
    public List<SysDingdan> selectDingdanListTwo(SysDingdan dingdan) {
        return sysDingdanMapper.selectDingdanListTwo(dingdan);
    }
}
